package com.ruoyi.member.mapper;

import com.ruoyi.member.domain.MemberLike;
import java.util.List;

/**
 * 会员点赞Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-24
 */
public interface MemberLikeMapper {
    /**
     * 查询会员点赞
     *
     * @param memberLikeId 点赞ID
     * @return 会员点赞
     */
    public MemberLike selectMemberLikeById(Integer memberLikeId);

    /**
     * 查询会员点赞列表
     *
     * @param memberLike 会员点赞
     * @return 会员点赞集合
     */
    public List<MemberLike> selectMemberLikeList(MemberLike memberLike);

    /**
     * 新增会员点赞
     *
     * @param memberLike 会员点赞
     * @return 结果
     */
    public int insertMemberLike(MemberLike memberLike);

    /**
     * 删除会员点赞
     *
     * @param memberLikeId 点赞ID
     * @return 结果
     */
    public int deleteMemberLikeById(Integer memberLikeId);

    /**
     * 根据用户ID和短视频ID删除点赞
     *
     * @param userId 用户ID
     * @param shortId 短视频ID
     * @return 结果
     */
    public int deleteMemberLikeByMemberAndShort(Long userId, Integer shortId);

    /**
     * 检查是否已点赞短视频
     *
     * @param userId 用户ID
     * @param shortId 短视频ID
     * @return 结果数量
     */
    public int checkLikeExists(Long userId, Integer shortId);
}
